<template>
  <div >
    <router-view v-if="isRouterAlive" />
  </div>
</template>

<script>
export default {
  name: 'App',
  components: {
  },
  data () {
      return {
        isRouterAlive: true
      }
  },
  methods: {
    reload () {
      this.isRouterAlive = false
      this.$nextTick(function() {
         this.isRouterAlive = true
      })
    }
  },
  provide () {
    return {
      reload: this.reload
    }
  }
}
</script>

<style>
#app {
 padding:0;            /*清除内边距*/
 margin:0;              /*清除外边距*/
}
</style>
